<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>企业详细介绍</title>
    <link rel="stylesheet" href="../../css/main.css" media="all">
    <link rel="stylesheet" href="../../css/jobDetail.css" media="all">
    <link rel="stylesheet" href="../../css/ok/oksub.css">
    <script type="text/javascript" src="../../libs/loading/okLoading.js"></script>
</head>

<body>
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 测试测试   -->
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1">&nbsp;</div>
            <!-- 头部区域 -->
            <div class="layui-col-xs4 layui-col-sm6 layui-col-md6">
                <div style="display:inline-block;margin-left: 20px;">
                    <img id="logimage" src="../../image/logo.png" height="50px" style="padding-top: 5px;cursor:pointer"
                         title="首页"
                         onclick="window.open('index.html', '_top', '', 'true')">
                </div>
            </div>

            <div class="layui-col-xs6 layui-col-sm4 layui-col-md4">
                <ul class="layui-nav" align="right" lay-filter="layadmin-layout-right">
                    <li class="layui-nav-item" lay-unselect>
                        <a id="icon-btn" href="javascript:;">
                            <img id="stuimg" src="../../image/avatar.png" class="layui-nav-img">
                            <cite id="stuname">贤心</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd id="viewinfo"><a>基本资料</a></dd>
                            <dd id="changepwd"><a>修改密码</a></dd>
                            <hr>
                            <dd id="logout" style="text-align: center;"><a>退出</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
                        <a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
                    </li>
                </ul>
            </div>
            <div class="layui-col-xs1 layui-col-sm1 layui-col-md1">&nbsp;</div>
        </div>
    </div>
</div>
<!-- 企业信息头部 -->
<div class="layui-container-md job_synopsis" id="dta_commpanyheader">
    <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-xs4 layui-col-sm7 layui-col-md7  inner_content_left">
            <div class="layadmin-homepage-pad-ver layui-col-md-offset1 layui-inline">
                <img class="layadmin-homepage-pad-img" src="../../imgs/tx001.jpg" width="106" height="106"
                     style="border-radius: 20%;">
            </div>
            <div class="layui-row layui-inline" style="margin-left: 20px">
                <h1 class="layui-inline" style="color: white;font-size: 35px">中软国际</h1>
                <i class="layui-icon layui-icon-auz layui-inline" style="color: #FF5722;margin-left: 10px"></i>
            </div>
        </div>
        <div class="layui-col-md3 layui-col-xs2 layui-col-sm5 layui-hide-xs inner_content_right layui-col-md-offset1"
             style="margin-top: 20px">
            <h1 style="color: white;font-size: 35px">49</h1>
            <span style="color: white;">在岗职位</span>
        </div>
    </div>
</div>
<!-- 企业信息头部end -->

<!-- 企业信息详细 -->
<div class="layui-container-md ">
    <div class="layui-row">
        <div class="layui-col-md8" style="border-right:3px solid #f2f5fa;">
            <div class="layui-col-md2">&nbsp;</div>
            <!-- 左侧详细 -->
            <div class="layui-col-xs4 layui-col-sm7 layui-col-md10 inner_content_left" id="dat_cpmpany">
                <div class="layui-row" style="margin-top:20px">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            <h2>
                                <strong>公司简介</strong>
                            </h2>
                        </div>
                        <div class="layui-card-body job_sy_color" style="font-size: 16px;line-height: 30px">
                            <br>中软国际有限公司（以下简称：中软国际）是中国领先的大型综合性软件与信息服务企业，成立于2000年，为香港主板上市公司，股票代码354 。
                            <br>为适应当今互联网化，以及云计算、大数据带来的挑战，公司将业务划分为技术与专业服务集团（TPG）和互联网IT服务集团（IIG） 。
                            TPG主要是为大客户、大行业提供技术和专业服务，目标是成为立足中国、服务全球、行业领先的全链条信息技术服务供应商。公司与华为、微软、汇丰、腾讯、阿里云、中移动等行业巨人有着全面深入的战略合作，深耕金融、电信、互联网、交通、能源等重点行业，持续开拓全球市场，为客户提供全链条、高质量、高效率、具有综合优势和行业特色的技术服务。IIG以“解放号”（JointForce）为核心，并针对政府、制造等典型的长尾市场以互联网组织方式构建核心竞争力。解放号既是一个通过可信人脉组织、由最佳管理实践背书的IT服务众包平台，也是一个海量解决方案研发、实施和集成的工作平台。
                            <br>依托TPG和IIG业务的双轮驱动，中软国际秉承“奋斗为本，成就客户，创造分享，共同成长”的核心价值观，成为客户长期、稳定、可信赖的合作伙伴，为成为世界级IT服务企业而奋斗！
                        </div>
                    </div>
                </div>

                <div class="layui-row" style="margin-top:20px;font-size: 16px;line-height: 30px">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            <h2>
                                <strong>工商信息</strong>
                            </h2>
                        </div>
                        <div class="layui-card-body job_sy_color" style="margin-top:10px;border: #aaa7a7 1px solid;">
                            <div class="layui-inline" style="margin-top: 20px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">注册资本: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">10000万元人民币</p>
                            </div>
                            <div class="layui-inline" style="margin-top: 20px;margin-left: 40px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">成立时间: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">2012-04-01</p>
                            </div>
                            <div style="margin-top: 20px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">企业类型: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">有限责任公司（外商投资企业法人独资）</p>
                            </div>
                            <div style="margin-top: 20px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">行业: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">计算机软件</p>
                            </div>
                            <div style="margin-top: 20px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">统一信用代码: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">9161013159222113X8</p>
                            </div>
                            <div style="margin-top: 20px">
                                <p class="layui-inline" style="text-align: left;margin-left: 10px">经营范围: </p>
                                <p class="layui-inline" style="margin-left: 10px;color: #000000">
                                    一般项目：软件开发；软件外包服务；信息系统集成服务；信息技术咨询服务；网络技术服务；计算机系统服务；非居住房地产租赁。（除依法须经批准的项目外，凭营业执照依法自主开展经营活动）许可项目：货物进出口；技术进出口。（依法须经批准的项目，经相关部门批准后方可开展经营活动，具体经营项目以审批结果为准）</p>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- 左侧详细end -->
        </div>
        <!-- 右侧开始-->
        <div class="layui-col-md3 inner_content_right">

            <div class="layui-row promotion-job" style="margin-top:20px">
                <div class="layui-card" style="border:1px #e3e7ed solid;color: #8d92a1;background: #f6f6f8">
                    <div class="layui-card-header">
                        <h2>在招岗位</h2>
                    </div>
                    <div class="layui-card-body rjlist r3" id="dat_cpmpanyjob">
                        <div class="e">
                            <a class="name" target="_blank" href=" " title="消防中控员">消防中控员</a>
                            <a target="_blank" href=" " title="昆明万博吾悦商业管理有限公司">昆明万博吾悦商业管理有限公司</a>
                            <strong title="4.5-6千/月">4.5-6千/月</strong>
                            <span title="昆明-呈贡区">昆明-呈贡区</span>
                            <em class="apply" name="delivery_em" onclick="emClick(this)"></em>
                            <input class="checkbox" type="checkbox" name="delivery_jobid_similar" value="121507520"
                                   style="display:none" jt="2">
                        </div>
                        <div class="e">
                            <a class="name" target="_blank" href=" " title="消防中控员">消防中控员</a>
                            <a target="_blank" href=" " title="昆明万博吾悦商业管理有限公司">昆明万博吾悦商业管理有限公司</a>
                            <strong title="4.5-6千/月">4.5-6千/月</strong>
                            <span title="昆明-呈贡区">昆明-呈贡区</span>
                            <em class="apply" name="delivery_em" onclick="emClick(this)"></em>
                            <input class="checkbox" type="checkbox" name="delivery_jobid_similar" value="121507520"
                                   style="display:none" jt="2">
                        </div>
                        <div class="e">
                            <a class="name" target="_blank" href=" " title="消防中控员">消防中控员</a>
                            <a target="_blank" href=" " title="昆明万博吾悦商业管理有限公司">昆明万博吾悦商业管理有限公司</a>
                            <strong title="4.5-6千/月">4.5-6千/月</strong>
                            <span title="昆明-呈贡区">昆明-呈贡区</span>
                            <em class="apply" name="delivery_em" onclick="emClick(this)"></em>
                            <input class="checkbox" type="checkbox" name="delivery_jobid_similar" value="121507520"
                                   style="display:none" jt="2">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row" style="margin-top:20px">
                <div class="layui-card" id="dat_companyEnvironment"
                     style="border:1px #e3e7ed solid;color: #8d92a1;background: #f6f6f8">
                    <div class="layui-card-header">
                        <a href=""><h2>公司环境</h2></a>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- 右侧结束-->
</div>

<!-- 模板开始 -->
<!-- 头部模板   -->
<script id="tlp_commpanyheader" type="text/html">
    <div class="layui-row">
        <div class="layui-col-md1">&nbsp;</div>
        <div class="layui-col-xs4 layui-col-sm7 layui-col-md7  inner_content_left">
            <div class="layadmin-homepage-pad-ver layui-col-md-offset1 layui-inline">
                <img class="layadmin-homepage-pad-img" src="{{d.data.logoimg}}" width="106" height="106"
                     style="border-radius: 20%;">
            </div>
            <div class="layui-row layui-inline" style="margin-left: 20px">
                <h1 class="layui-inline" style="color: white;font-size: 35px">{{d.data.enterprisename}}</h1>
                <i class="layui-icon layui-icon-auz layui-inline" id="auznew"
                   style="color: #BFBFBF;margin-left: 10px"></i>
                <div style="margin-top: 10px;margin-left: -10px" class="layui-breadcrumb">
                </div>
            </div>
        </div>
        <div class="layui-col-md3 layui-col-xs2 layui-col-sm5 layui-hide-xs inner_content_right layui-col-md-offset1"
             style="margin-top: 20px">
            <h1 style="color: white;font-size: 35px">{{d.jobcnt}}</h1>
            <span style="color: white;">在岗职位</span>
        </div>
    </div>
</script>
<!--公司信息模板-->
<script id="tpl_company" type="text/html">
    <!-- 公司简介   -->
    <div class="layui-row" style="margin-top:20px">
        <div class="layui-card">
            <div class="layui-card-header">
                <h2>
                    <strong>公司简介</strong>
                </h2>
            </div>
            <div class="layui-card-body job_sy_color" style="font-size: 16px;line-height: 30px">{{d.companyprofile}}
            </div>
        </div>
    </div>
    <!-- 工商信息 -->
    <div class="layui-row" style="margin-top:20px;font-size: 16px;line-height: 30px">
        <div class="layui-card">
            <div class="layui-card-header">
                <h2>
                    <strong>工商信息</strong>
                </h2>
            </div>
            <div class="layui-card-body job_sy_color" style="margin-top:10px;border: #aaa7a7 1px solid;">
                <div class="layui-inline" style="margin-top: 20px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">注册资本: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.registercapital}}</p>
                </div>
                <div class="layui-inline" style="margin-top: 20px;margin-left: 40px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">成立时间: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.originatetime}}</p>
                </div>
                <div style="margin-top: 20px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">企业类型: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.enterprisetype}}</p>
                </div>
                <div style="margin-top: 20px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">行业: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.industry}}</p>
                </div>
                <div style="margin-top: 20px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">统一信用代码: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.usccode}}</p>
                </div>
                <div style="margin-top: 20px">
                    <p class="layui-inline" style="text-align: left;margin-left: 10px">经营范围: </p>
                    <p class="layui-inline" style="margin-left: 10px;color: #000000">{{d.scopeofbusiness}}</p>
                </div>
            </div>
        </div>
    </div>
</script>
<!-- 公司环境模板 -->
<script id="tpl_companyEnvironment" type="text/html">
    <div class="layui-carousel" id="test1" style="margin-top: 20px;">
        <div carousel-item>
            {{# layui.each(d.data, function(index, item){ }}
            <div>
                <img src="{{item.photoname}}" height="90%"
                     style="margin-left: 3%;margin-top: 2.5%">
            </div>
            {{# }); }}
            {{# if(d.data.length === 0){ }}
            <div>
                <img src="../../imgs/tx001.jpg" height="90%"
                     style="margin-left: 3%;margin-top: 2.5%">
            </div>
            {{# } }}
        </div>
    </div>
</script>
<!--  特色活动模板 -->
<script id="tpl_specialActivities" type="text/html">
    <div class="layui-row" style="margin-top:20px">
        <div class="layui-card" id="datasourse">
            <div class="layui-card-header">
                <h2>
                    <strong>企业特色活动</strong>
                </h2>
            </div>
            {{# layui.each(d.data, function(index, item){ }}
            <div class="layui-inline" style="margin-top: 20px">
                <div class="layui-inline" style="margin-left: 20px;">
                    <img src={{item.activitieimage}} width="150"
                         height="150">
                </div>
                <!-- 活动内容-->
                <div class="layui-inline" style="width: 500px;margin-left: 10px">
                    {{ item.activitiecontent }}
                </div>
            </div>
            {{# }); }}
            {{# if(d.data.length === 0){ }}
            <div class="layui-inline" style="margin-top: 20px">
                暂无特色活动
            </div>
            {{# } }}
        </div>
    </div>
</script>

<!--岗位模板-->
<script id="tpl_companyjob" type="text/html">
    {{# layui.each(d.data, function(index, item){ }}
    <div class="e">
        <a class="name" style="font-size: 18px;font-family: bold" href="jobDetail.html?jobid={{item.jobid}}" title="">{{item.jobname}}</a>
        <a>{{item.jobType.typename}}</a>
        <strong title="">{{item.jobsalary}}</strong>
        <span title="">{{item.workplace}}</span>
        <em class="apply" name="delivery_em" onclick="emClick(this)"></em>
        <input class="checkbox" type="checkbox" name="delivery_jobid_similar" value="121507520"
               style="display:none" jt="2">
    </div>
    {{# }); }}
    {{# if(d.data.length === 0){ }}
    <div class="e">
        暂无再招岗位
    </div>
    {{# } }}
</script>
</body>

<script src="../../libs/layui/layui.js"></script>
<script src="../../js/header.js"></script>
<script>
    let tpeiseid = window.location.href.split("?")[1].split("=")[1];
    layui.use(['element', 'layer', 'carousel', 'jquery', 'laytpl', 'okLayer'], function () {
        let layer = layui.layer;
        let carousel = layui.carousel;
        let $ = layui.jquery;
        let laytpl = layui.laytpl;
        let okLayer = layui.okLayer;

        // 获取contentText
        const ctx = function () {
            let pathName = document.location.pathname;
            let index = pathName.substr(1).indexOf("/");
            let result = pathName.substr(0, index + 1);
            return result;
        }();

        //退出登录
        $("#logout").bind('click', function () {
            window.sessionStorage.clear();
            window.open(url, "_top", "", "true");
        })
        //个人信息
        $("#viewinfo").bind('click', function () {
            let vurl = ctx + "/pages/student/studentindex.html";
            window.open(vurl, "_top", "", "true");
        })
        //忘记密码
        $("#changepwd").bind('click', function () {
            let curl = ctx + "/pages/student/stuForget.html";
            window.open(curl, "_top", "", "true");
        })
        $("#icon-btn").bind('click', function () {
            let vurl = ctx + "/pages/student/studentindex.html";
            window.open(vurl, "_top", "", "true");
        })
        let priseid = window.location.href.split("?")[1].split("=")[1];

        loadcompnyhead();

        //加载头信息
        function loadcompnyhead() {
            var tplcompanyhead = document.getElementById('tlp_commpanyheader').innerHTML;
            $.ajax({
                //请求地址
                url: ctx + "/ygssecs/getcompanyHead",
                //请求方式
                type: "get",
                data: {priseid: priseid},
                //数据，json字符串
                dataType: "JSON",
            }).done(function (res) {
                okLoading.close();
                if (res.code == 200) {
                    var authdata = res;
                    laytpl(tplcompanyhead).render(authdata, function (html) {
                        document.getElementById('dta_commpanyheader').innerHTML = html;
                        loadcompny();
                        loadcompnyjob();
                    })
                }
                //判断认证
                if (res.data.certificationstatus == "2") {
                    $("#auznew").css("color", "#FF5722");
                }
            }).fail(function (e) {
                console.error(e)
            })
        }

        //加载岗位信息
        function loadcompnyjob() {
            var tplcompanyjob = document.getElementById('tpl_companyjob').innerHTML;
            $.ajax({
                //请求地址
                url: ctx + "/ygssecs/getjobListbypriseid",
                //请求方式
                type: "get",
                data: {
                    priseid: priseid,
                    pageSize: 5,
                    pageNum: 1
                },
                //数据，json字符串
                dataType: "JSON",
            }).done(function (res) {
                if (res.code == 200) {
                    var authdata = res;
                    laytpl(tplcompanyjob).render(authdata, function (html) {
                        document.getElementById('dat_cpmpanyjob').innerHTML = html;
                    })
                    loadcompanyEnvironment();
                }
            }).fail(function (e) {
                console.error(e)
            })
        }

        //加载公司信息
        function loadcompny() {
            var tplcompany = document.getElementById('tpl_company').innerHTML;
            $.ajax({
                //请求地址
                url: ctx + "/ygssecs/getcompanyDetail",
                //请求方式
                type: "get",
                data: {priseid: tpeiseid},
                //数据，json字符串
                dataType: "JSON",
            }).done(function (res) {
                if (res.code == 200) {
                    console.log(res.data)
                    var authdata = res.data.authInfomation;
                    laytpl(tplcompany).render(authdata, function (html) {
                        document.getElementById('dat_cpmpany').innerHTML = html;
                    })
                    loadspecialActivities();
                }
            }).fail(function (e) {
                console.error(e)
            })
        }

        //加载公司环境
        function loadcompanyEnvironment() {
            var tplcompanyEnvironment = document.getElementById('tpl_companyEnvironment').innerHTML;
            $.ajax({
                url: ctx + "/ygssecs/getEnterpriseImg",
                type: 'get',
                dataType: 'json',
                data: {enterpriseid: priseid}
            }).done(function (res) {
                if (res.code == 200) {
                    laytpl(tplcompanyEnvironment).render(res, function (html) {
                        $("#dat_companyEnvironment").append(html);
                    })
                    //轮播
                    carousel.render({
                        elem: '#test1'
                        , width: '100%' //设置容器宽度
                        , height: '200px'
                        , arrow: 'always' //始终显示箭头
                        , anim: 'default' //切换动画方式
                        , indicator: 'none'
                    });
                } else {
                    console.log("数据请求失败")
                }
            }).fail(function (e) {
                console.error(e)
            })
        }

        //加载特色活动
        function loadspecialActivities() {
            // 得到特色活动模版html
            var tplspecialActivities = document.getElementById('tpl_specialActivities').innerHTML;
            $.ajax({
                url: ctx + "/ygssecs/getEnterpriseAct",
                type: 'get',
                data: {enterpriseid: priseid},
                dataType: 'json'
            }).done(function (res) {
                if (res.code == 200) {
                    laytpl(tplspecialActivities).render(res, function (html) {
                        $("#dat_cpmpany").append(html);
                    })
                } else {
                    console.log("数据请求失败")
                }
            }).fail(function (e) {
                console.error(e)
            })
        }
    });
</script>
</html>